package com.boot.service;

import com.boot.bean.Student;
import com.boot.dao.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;



@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    StudentMapper mapper;

    @Override
    public Student getName(Integer id) {
        Student user = mapper.findUser(id);
        return user;
    }

    @Override
    public Student getByTid(Integer tid) {
        Student user = mapper.tid(tid);
        return user;
    }

}
